package cn.silver.module.message.controller;

import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.message.bean.CaptchaBean;
import cn.silver.module.message.domain.MsgCaptcha;
import cn.silver.module.message.param.CaptchaParam;
import cn.silver.module.message.service.IMsgCaptchaService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/msg/captcha")
@Tag(name = "消息管理-消息验证码管理")
public class MsgCaptchaController extends BaseController<IMsgCaptchaService, MsgCaptcha, CaptchaParam, CaptchaBean> {

    @Override
    @Resource
    public void setBaseService(IMsgCaptchaService baseService) {
        this.baseService = baseService;
        this.setCode("msg:captcha");
        this.setPermission("msg:captcha");
        this.setTitle("消息管理-消息验证码管理");
    }
}
